package scheduler.fixtures;

import fitlibrary.SetUpFixture;
import se392.ateam2006.user.UserMgmtRemote;
import se392.ateam2006.authentication.GroupMgmtRemote;



/**
 * TODO: STUB
 * @author Ateam (Matthew Bennett, Claire Melton, Shingai Manyiwa, John Adderley)
 * @version 25/03/07
 */
public class SetUpBookingPermissions extends SetUpFixture{
    
    private UserMgmtRemote userManage;
    private GroupMgmtRemote groupManage;
    
    /** Creates a new instance of SetUpBookingPermissions */
    public SetUpBookingPermissions(UserMgmtRemote userManage, GroupMgmtRemote groupManage) {
        this.userManage = userManage;
        this.groupManage = groupManage;
    }
    
    public void emailPermission(String email, String permissions) throws Exception {
        userManage.setBookingPermissions(email, permissions);
        //groupManage.addUserToGroup(permissions, email);
    }
    
}
